{extend name="pub/base" /}
{block name="title"}
<title>评论管理</title>
{/block}

{block name="body"}
<section class="Hui-admin-article">
    <nav class="breadcrumb" style="background-color:#fff;padding: 0 24px"><i class="Hui-iconfont">&#xe67f;</i> 首页
        <span class="c-gray en">&gt;</span>
        评论管理
        <span class="c-gray en">&gt;</span>
        评论列表
        <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
           href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
    </nav>
    <article class="Hui-admin-content clearfix">
        <div class="panel mt-20">
            <div class="panel-body">
                <div class="clearfix">
                    <span class="f-l">
                     <a href="javascript:;" onclick="delAll('请选择要删除的评论','comment')" class="btn btn-danger radius"><i
                                        class="Hui-iconfont">&#xe6e2;</i> 批量删除</a>
					</span>
                    <span class="f-r">共有数据：<strong>{$count}</strong> 条</span>
                </div>
                <div class="mt-20 clearfix">
                    <table class="table table-border table-bordered table-bg table-hover table-sort">
                        <thead>
                        <tr class="text-c">
                            <th width="40"><input id="cbx" type="checkbox" value=""></th>
                            <th width="80">ID</th>
                            <th width="120">漫画</th>
                            <th width="120">用户名</th>
                            <th width="200">评论</th>
                            <th width="120">评论时间</th>
                            <th width="120">操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        {volist name="comments" id="vo"}
                        <tr class="text-c">
                            <td><input data-val="{$vo.id}" class="cbx" type="checkbox" value=""></td>
                            <td>{$vo.id}</td>
                            <td><a href="index?book_id={$vo.book.id}">{$vo.book.book_name}</a></td>
                            <td><a href="index?uid={$vo.user.id}">{$vo.user.username}</a></td>
                            <td>{$vo.content|subtext=20}...</td>
                            <td>
                                {$vo.create_time|date='Y-m-d H:i'}
                            </td>
                            <td class="f-14 td-manage">
                                <a style="text-decoration:none" class="ml-5" onclick="del(this,{$vo.id})"
                                   href="javascript:;" title="删除"><i class="Hui-iconfont">&#xe6e2;</i></a>
                            </td>
                        </tr>
                        {/volist}
                        </tbody>
                    </table>
                    {$comments|raw}
                </div>
            </div>
        </div>
    </article>
</section>

{/block}